Optimal. Leaf size=41 \[ -\frac{1}{2} e^{-x} \sin (x)+\frac{1}{2} e^x \sin (x)-\frac{1}{2} e^{-x} \cos (x)-\frac{1}{2} e^x \cos (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0252271, antiderivative size = 41, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 1, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {4432} \[ -\frac{1}{2} e^{-x} \sin (x)+\frac{1}{2} e^x \sin (x)-\frac{1}{2} e^{-x} \cos (x)-\frac{1}{2} e^x \cos (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4432
Rubi steps
\begin{align*} \int \left (e^{-x} \sin (x)+e^x \sin (x)\right ) \, dx &=\int e^{-x} \sin (x) \, dx+\int e^x \sin (x) \, dx\\ &=-\frac{1}{2} e^{-x} \cos (x)-\frac{1}{2} e^x \cos (x)-\frac{1}{2} e^{-x} \sin (x)+\frac{1}{2} e^x \sin (x)\\ \end{align*}
Mathematica [A] time = 0.0646951, size = 33, normalized size = 0.8 \[ -\frac{1}{2} e^x \left (e^{-2 x}-1\right ) \sin (x)-\frac{1}{2} e^x \left (e^{-2 x}+1\right ) \cos (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 30, normalized size = 0.7 \begin{align*} -{\frac{{{\rm e}^{x}}\cos \left ( x \right ) }{2}}+{\frac{{{\rm e}^{x}}\sin \left ( x \right ) }{2}}-{\frac{{{\rm e}^{-x}}\cos \left ( x \right ) }{2}}-{\frac{{{\rm e}^{-x}}\sin \left ( x \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03471, size = 31, normalized size = 0.76 \begin{align*} -\frac{1}{2} \,{\left (\cos \left (x\right ) + \sin \left (x\right )\right )} e^{\left (-x\right )} - \frac{1}{2} \,{\left (\cos \left (x\right ) - \sin \left (x\right )\right )} e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.463393, size = 84, normalized size = 2.05 \begin{align*} -\frac{1}{2} \,{\left (\cos \left (x\right ) e^{\left (2 \, x\right )} -{\left (e^{\left (2 \, x\right )} - 1\right )} \sin \left (x\right ) + \cos \left (x\right )\right )} e^{\left (-x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.60042, size = 32, normalized size = 0.78 \begin{align*} \frac{e^{x} \sin{\left (x \right )}}{2} - \frac{e^{x} \cos{\left (x \right )}}{2} - \frac{e^{- x} \sin{\left (x \right )}}{2} - \frac{e^{- x} \cos{\left (x \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1592, size = 31, normalized size = 0.76 \begin{align*} -\frac{1}{2} \,{\left (\cos \left (x\right ) + \sin \left (x\right )\right )} e^{\left (-x\right )} - \frac{1}{2} \,{\left (\cos \left (x\right ) - \sin \left (x\right )\right )} e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]